package JavaUtils.enumType;

public enum ELogType {
    Error("Error",0),
    Assert("Assert",1),
    Warning("Warning",2),
    Log ("Log",3),
    Exception ("Exception",4);
    
    String m_name;
    int m_index;
    
    //���췽��
    private ELogType(String name, int index){
    	this.m_name= name;
    	this.m_index = index;
    }
    
    // ��ͨ����  
    public static String getName(int index) {  
        for (ELogType c : ELogType.values()) {
            if (c.m_index == index) {  
                return c.m_name;  
            }  
        }  
        return null;  
    } 
 
    //���Ƿ��� 
    @Override 
    public String toString() { 
    	return this.m_index+"_"+this.m_name; 
    } 
}
